import request from "@/utils/request";
//获取轮播图
export const getBannerListAPI = ({pageNo=1,pageSize=5})=>request.get(`/banner/list?pageNo=${pageNo}&pageSize=${pageSize}`)
//添加轮播图
export const addBannerAPI = (data)=>request.post('/banner/add',data)
//修改轮播图
export const updateBannerAPI = (id,data)=>request.put(`/banner/update?id=${id}`,data)
//删除轮播图
export const deleteBannerAPI = (id)=>request.delete(`/banner/delete?id=${id}`)